package com.lanou.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;

/**
 * Created by dllo on 15/10/21.
 */
public class WelcomeActivity extends Activity implements View.OnClickListener {
   private Button openBtn;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);

     init();
    }

    private void init() {
        openBtn=(Button)findViewById(R.id.openBtn);
        openBtn.setOnClickListener(this);

        Animation scaleAnim = AnimationUtils.loadAnimation(this, R.anim.scal_img);
        openBtn.setAnimation(scaleAnim);
    }

    @Override
    public void onClick(View v) {
      switch (v.getId()){
          case R.id.openBtn:
              Intent intent =new Intent(this,LoginActivity.class);
     startActivity(intent);
      }

    }
}
